<?php

/**
 * @author 			Igor Barkowsky
 * @copyright 		2008
 * @name 			Item class
 * @param 			
 */
 
class Item
{
	var $table;
	var $parent;
	var $id;
	var $db;
	function __construct($id)
	{
		global $db;
		$this->db = $db;
		$data = $this->db->fetch_one("SELECT * FROM ".$this->table." WHERE id='".$this->id."'",MYSQL_ASSOC);
		if($data!=false)
		{
			return true;
		}
		else return false;
	}
}



?>